<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Show uploaded files</title>
  </head>
  <body>
    <h1>Show Uploaded</h1>
    <br/>
    <g:if test="${flash.invalidToken}">
      Don't submit duplicated form!
    </g:if>
    <g:uploadForm action="upload" useToken="true">
      <input type="file" name="myFile"/>
      <br/>
      <input type="submit" value="Upload"/>
    </g:uploadForm>
    <ul>
      <g:each in="${uploadedFileList}" status="i" var="file">
        <li>${fieldValue(bean: file, field: "name")}</li>
      </g:each>
    </ul>
  </body>
</html>
